package com.foreknow;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

@SpringBootApplication
public class HisCmsApplication {

  public static void main(String[] args) {
    SpringApplication.run(HisCmsApplication.class, args);
  }

//  @Override
//  public void addCorsMappings(CorsRegistry registry) {
//    System.out.println("----------------------");
//    registry.addMapping("/**")
//      .allowedOrigins("*")
//      .allowCredentials(true)
//      .allowedMethods("GET", "POST", "DELETE", "PUT")
//      .maxAge(3600);
//  }

}
